home *** CD-ROM | disk | FTP | other *** search
/ Merciful 2 / Merciful - Disc 2.iso / software / h / hypercacheii.dms / hypercacheii.adf / Install_HyperCache < prev    next >
Text File  |  1994-08-24  |  2KB  |  75 lines

  1. ; script to install HyperCache
  2. ; Should be run from WorkBench by double-clicking on the icon
  3.  
  4. ; Ask where to install HyperCache 2
  5. (set @default-dest (askdir
  6.     (prompt "Please select where to install HyperCache 2.  A directory "
  7.         "will be created.")
  8.     (default @default-dest)
  9.     (help    "A directory will be created under the one you select.  "
  10.         "HyperCache 2 will then be installed into this directory."))
  11. )
  12. (set @default-dest (tackon @default-dest "HyperCache2"))
  13.  
  14. ; Create HyperCache 2 directory
  15. (message "HyperCache 2 will be installed in " @default-dest)
  16. (makedir @default-dest
  17.     (infos)
  18.     (help    "If you proceed, the specified directory will be "
  19.         "created, and HyperCache 2 installed into it.")
  20. )
  21.  
  22. ; Copy across all the necessary files
  23. (copyfiles
  24.     (prompt "Copy HyperCache 2")
  25.     (help "HyperCache 2 will now be copied to your system")
  26.     (source "HyperCache2:")
  27.     (dest @default-dest)
  28.     (pattern "~(#?.info)")
  29.     (infos)
  30.     (confirm)
  31. )
  32.  
  33. ; Copy the one library used
  34. (copylib
  35.     (prompt "Install the rexxhost.library?")
  36.     (source "HyperCache2:Libs/rexxhost.library")
  37.     (dest "Libs:")
  38. )
  39.  
  40. ; See if HyperCache 2 should be started at boot time
  41. (if (= 0 (askchoice
  42.         (prompt "Should HyperCache 2 be started at boot time?")
  43.         (help    "If you select to start HyperCache 2 at boot time, "
  44.             "then HyperCache 2 will be copied to your WBStartup "
  45.             "drawer, otherwise no action will be taken.")
  46.         (choices "Yes" "No")
  47.         (default 0)))
  48.     (
  49.         ; Ask if the user has a 68000 or a 68020
  50.         (set answer (askchoice
  51.             (prompt "What processor does your Amiga have?")
  52.             (help    "A standard A500, A600, A1000 and the A2000 has a 68000, "
  53.                 "so select the 68000 option if you have one of these "
  54.                 "machines.\n"
  55.                 "A standard A1200, A2500, A3000 and the A4000 "
  56.                 "has a 68020 or better, so select the 68020 option "
  57.                 "if you have one of these machines.")
  58.             (choices "68000" "68020 or better")
  59.             (default 0)
  60.         ))
  61.  
  62.         ; Copy the file to the WBStartup drawer
  63.         (if (= answer 0) (set file "HyperCache.68000") (set file "HyperCache.68020"))
  64.         (copyfiles
  65.             (source (tackon @default-dest file))
  66.             (dest "SYS:WBStartup")
  67.             (infos))
  68.     )
  69. )
  70.  
  71. ; Run the HyperCache 2 config program
  72. (message     "HyperCachePrefs will now be started so that you can "
  73.         "configure HyperCache 2.")
  74. (run (tackon @default-dest "HyperCachePrefs"))
  75.